<div class="row">
	<div class="panel">
		<h5>Grade Level Table</h5>
	</div>
<?if(isset($system_message))echo $system_message;?>
<?echo $this->pagination->create_links();?>
	<?if(!empty($grade_level_data)):?>
	<table class="table">
		<tr>
			<td colspan="4">
				<a href="<?=site_url('room_section_subject/update_grade_level')?>" class="confirm btn btn-small btn-primary" title="Are you sure you want to edit data?"><i class="icon-pencil"></i> Edit Grade Level</a>
				<a href="<?=site_url('room_section_subject/add_grade_level')?>" class="confirm btn btn-small  btn-success" title="This will take you to another page. Are you sure you want to add new grade level?"><i class="icon-plus"></i> Add New Grade Level</a>
			</td>
		</tr>
		<tr>
			<th>Level Code</th>
			<th>Level Description</th>
			<th>Level Status</th>
			<th>&nbsp;</th>
		</tr>
		<tbody>
			
		<?foreach($grade_level_data as $gld):?>
			<tr>
				<td><?=$gld->level_code;?></td>
				<td><?=$gld->level_desc;?></td>
				<td><?=$gld->level_stat;?></td>
				<!--
				<?if($gld->level_stat == 'active'):?>
					<td><a href="<?=site_url('room_section_subject/destroy_gl').'/'.$gld->level_id;?>" class="confirm" title="Destroy Item?">Destroy Item</td>
				<?elseif($gld->level_stat == 'inactive'):?>
					<td><a href="<?=site_url('room_section_subject/undestroy_gl').'/'.$gld->level_id;?>" class="confirm" title="Undestroy Item?">Undo Destroy</td>
				<?endif;?>
				-->
				<td><a href="<?=site_url('room_section_subject/delete_grade_level').'/'.__link(intval($gld->level_id));?>" class="confirm btn btn-mini btn-warning" title="Delete Grade Level?"><i class="icon-remove"></i> Del</a></td>
			</tr>
		<?endforeach;?>
		
		</tbody>
	</table>
	<?else:?>
		<div class="panel">
		<div class="alert">No Grade Level found.</div>
		<a href="<?=site_url('room_section_subject/add_grade_level')?>" class="confirm button tiny" title="This will take you to another page. Are you sure you want to add new grade level?">Add Grade Level</a>
		</div>
	<?endif;?>
</div>